﻿namespace SimpleX.RBAC
{
    public class SysMenuSeedData : ISqlSugarEntitySeedData<SysMenu>
    {
        [IgnoreSeedDataUpdate]
        public IEnumerable<SysMenu> SeedData()
        {
            var SortCode = 1;
            var datas = new List<SysMenu>()
            {
                new SysMenu
                {
                    Id = "4541041164730369",
                    Title = "系统",
                    Code = "system",
                    Category= "MODULE",
                    Icon = "appstore-add-outlined",
                    Color="#05a045",
                    SortCode=SortCode++,
                },
                new SysMenu
                {
                    Id = "4541041164730370",
                    Title = "业务",
                    Code = "system",
                    Category= "MODULE",
                    Icon = "profile-outlined",
                    Color="#d81b43",
                    SortCode=SortCode++,
                },
                new SysMenu
                {
                    Id = "4541041164730371",
                    Title = "系统首页",
                    Name="index",
                    Code = "system",
                    Category= "SPA",
                    MenuType ="MENU",
                    Icon = "appstore-add-outlined",
                    Path="/index",
                    Component="index/index",
                    Color="#05a045",
                    SortCode=SortCode++,
                },
                 new SysMenu
                {
                    Id = "464564812340001",
                    Title = "个人中心",
                    Name="userCenter",
                    Code = "system",
                    Category= "SPA",
                    MenuType ="MENU",
                    Icon = "appstore-outlined",
                    Path="/usercenter",
                    Component="sys/user/userCenter",
                    Color="#05a045",
                    SortCode=SortCode++,
                },
                new SysMenu
                {
                    Id = "4541041164730372",
                    ParentId="0",
                    Title = "组织架构",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    Path ="/4541041164730372",
                    MenuType= "CATALOG",
                    Icon = "apartment-outlined",
                    Color="#05a045",
                    SortCode=SortCode++,
                },
                 new SysMenu
                {
                    Id = "4541041164730373",
                    ParentId="4541041164730372",
                    Title = "组织管理",
                    Name="sysOrg",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    MenuType= "MENU",
                    Path ="/sys/org",
                    Component="sys/org/index",
                    Icon = "cluster-outlined",
                    SortCode=SortCode++,
                },
                  new SysMenu
                {
                    Id = "4541041164730374",
                    ParentId="4541041164730372",
                    Title = "用户管理",
                    Name="sysUser",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    MenuType= "MENU",
                    Path ="/sys/user",
                    Component="sys/user/index",
                    Icon = "user-outlined",
                    SortCode=SortCode++,
                },
                new SysMenu
                {
                    Id = "4541041164730375",
                    ParentId="0",
                    Title = "权限管理",
                    Code = "system",
                    Category= "MENU",
                    Path ="/4541041164730375",
                    Module="4541041164730369",
                    MenuType= "CATALOG",
                    Icon = "user-switch-outlined",
                    Color="#05a045",
                    SortCode=SortCode++,
                },
                 new SysMenu
                {
                    Id = "4541041164730376",
                    ParentId="4541041164730375",
                    Title = "角色管理",
                    Name="sysRole",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    MenuType= "MENU",
                    Path ="/sys/role",
                    Component="sys/role/index",
                    Icon = "deployment-unit-outlined",
                    SortCode=SortCode++,
                },
                  new SysMenu
                {
                    Id = "4541041164730377",
                    ParentId="4541041164730375",
                    Title = "模块管理",
                    Name="sysModule",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    MenuType= "MENU",
                    Path ="/sys/module",
                    Component="sys/resource/module/index",
                    Icon = "appstore-add-outlined",
                    SortCode=SortCode++,
                },
                   new SysMenu
                {
                    Id = "4541041164730378",
                    ParentId="4541041164730375",
                    Title = "菜单管理",
                    Name="sysMenu",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    MenuType= "MENU",
                    Path ="/sys/menu",
                    Component="sys/resource/menu/index",
                    Icon = "appstore-add-outlined",
                    SortCode=SortCode++,
                },
                    new SysMenu
                {
                    Id = "4541041164730379",
                    ParentId="4541041164730375",
                    Title = "单页管理",
                    Name="sysSpa",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    MenuType= "MENU",
                    Path ="/sys/spa",
                    Component="sys/resource/spa/index",
                    Icon = "pic-center-outlined",
                    SortCode=SortCode++,
                },
                 new SysMenu
                {
                    Id = "4541041164730380",
                    ParentId="0",
                    Title = "系统管理",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    MenuType= "CATALOG",
                    Path ="/4541041164730380",
                    Icon = "hdd-outlined",
                    SortCode=SortCode++,
                },
                 new SysMenu
                {
                    Id = "4541041164730381",
                    ParentId="4541041164730380",
                    Title = "数据字典",
                    Name="devDict",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    MenuType= "MENU",
                    Path ="/sys/dict",
                    Component="dev/dict/index",
                    Icon = "file-search-outlined",
                    SortCode=SortCode++,
                },
                 new SysMenu
                {
                    Id = "4541041164730382",
                    ParentId="4541041164730380",
                    Title = "系统配置",
                    Name="devConfig",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    MenuType= "MENU",
                    Path ="/sys/config",
                    Component="dev/config/index",
                    Icon = "setting-outlined",
                    SortCode=SortCode++,
                },
                 new SysMenu
                {
                    Id = "4541041164740000",
                    ParentId="4541041164730380",
                    Title = "代码生成",
                    Name="genIndex",
                    Code = "system",
                    Category= "MENU",
                    Module="4541041164730369",
                    MenuType= "MENU",
                    Path ="/gen",
                    Component="gen/index",
                    Icon = "rocket-outlined",
                    SortCode=SortCode++,
                },
            };

            foreach (var item in datas)
            {
                item.CreateDate = DateTime.Now;
                item.CreateUserId = "Sys";
                item.CreateUserName = "Sys";
            }

            return datas;
        }
    }
}